<template>
     <div class="sub-main-content">
        <el-breadcrumb  separator="/">
            <el-breadcrumb-item><i class="el-icon-location-outline"></i>个人中心</el-breadcrumb-item>
            <el-breadcrumb-item>个人设置</el-breadcrumb-item>
        </el-breadcrumb>
        <div class="sub-block">
            <div class="block-title">密码设置</div>
            <div class="form-container">
                <el-form ref="pwdForm" :model="changePwd" label-width="120px" label-suffix='：'>
                    <el-form-item label="旧密码">
                        <el-input v-model="changePwd.oldPwd"  placeholder="请输入密码" show-password></el-input>
                    </el-form-item>
                    <el-form-item label="新密码">
                        <el-input v-model.number="changePwd.newPwd"  placeholder="请输入密码" show-password></el-input>
                    </el-form-item>
                    <el-form-item label="确认密码">
                        <el-input v-model="changePwd.verifyPwd"  placeholder="请确认密码" show-password></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="submitForm('pwdForm')">立即提交</el-button>
                    </el-form-item>
                </el-form>
            </div>
        </div>
    </div>
</template>

<script lang="ts">
import { defineComponent, reactive, } from 'vue'

export default defineComponent({
    setup () {
        let changePwd = reactive({
            oldPwd:'',
            newPwd:'',
            verifyPwd:''
        })
        function submitForm(formName:string) {
            console.log(formName)
        }
        return {
            changePwd,
            submitForm
        }
    }
})
</script>

<style scoped>

</style>